package org.dromara.merchants.domain.vo;

import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant;
import org.dromara.merchants.domain.TaStore;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 店铺视图对象 ta_store
 *
 * @author xiyin321
 * @date 2024-07-02
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = TaStore.class)
public class TaStoreVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 店铺编号
     */
    @ExcelProperty(value = "店铺编号")
    private Long storeId;

    /**
     * 店铺名
     */
    @ExcelProperty(value = "店铺名")
    private String storeName;

    /*用户id*/
    private Long userId;

    /*状态*/
    private String status;

    /**
     * 地址(经纬度)
     */
    @ExcelProperty(value = "地址(经纬度)")
    private String address;

    /**
     * 省
     */
    @ExcelProperty(value = "省")
    private String province;

    /**
     * 市
     */
    @ExcelProperty(value = "市")
    private String city;

    /**
     * 区
     */
    @ExcelProperty(value = "区")
    private String area;

    /**
     * 街道
     */
    @ExcelProperty(value = "街道")
    private String street;

    /**
     * 封面url
     */
    @ExcelProperty(value = "封面")
    private Long cover;
    @Translation(type = TransConstant.OSS_ID_TO_URL)
    private Long coverUrl;

    /**
     * 商家图标url
     */
    @ExcelProperty(value = "商家图标")
    private Long logo;
    @Translation(type = TransConstant.OSS_ID_TO_URL)
    private Long logoUrl;

    /**
     * 描述
     */
    @ExcelProperty(value = "描述")
    private String description;

    /**
     * 商家电话
     */
    @ExcelProperty(value = "商家电话")
    private String phone;

    /**
     * 评分
     */
    @ExcelProperty(value = "评分")
    private String score;


    public void setCover(Long cover) {
        this.cover = cover;
        this.coverUrl = cover;
    }
    public void setLogo(Long logo) {
        this.logo = logo;
        this.logoUrl = logo;
    }
}
